
public class Rule {

	String string;
	int number;
	
	public Rule(String string, int number) {
		this.string = string;
		this.number = number;
	}

	public String play(int n) {
		if(n%number==0)return string;
		else return "";
	}
	
}
